package com.example.designprinciple.carp;

/**
 * @Authors：gaoyang
 * @CreateTime：2021-10-20
 * @Description：todo
 */
public class ProductDao {

    private DBConnection dbConnection;

    public void setDbConnection(DBConnection dbConnection) {
        this.dbConnection = dbConnection;
    }
    public void addProduct(){
        String con = dbConnection.getConnection();
        System.out.println("使用"+con+"增加产品");
    }
}
